home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / egebook.lha / ege.book / 5 / Student.h < prev    next >
C/C++ Source or Header  |  1992-06-05  |  401b  |  25 lines

  1. #ifndef Student_h
  2. #define Student_h
  3.  
  4. #include "Person.h"
  5. #include "Collection.h"
  6.  
  7. class Collection;
  8.  
  9. class Student: public virtual Person {
  10.   Collection *taking;
  11.   void signup();
  12.  public:
  13.   static Collection *Body;
  14.   Student(String n):Person(n) {;
  15.     taking = new Collection;
  16.     Body->add(this);
  17.   };
  18.   Example *alike(String &name){
  19.     return(new Student(name));
  20.   };
  21.   void maintain();
  22. };
  23.  
  24. #endif
  25.